DevForce Help Reference
ExecuteQueryAsync<T>(IEntityQuery<T>,CancellationToken) Method


Return type
Executes the specified query asynchronously.
Syntax
'Declaration
 
Public Overloads Function ExecuteQueryAsync(Of T)( _
   ByVal query As IEntityQuery(Of T), _
   ByVal cancellationToken As CancellationToken _
) As Task(Of IEnumerable(Of T))
'Usage
 
Dim instance As EntityManager
Dim query As IEntityQuery(Of T)
Dim cancellationToken As CancellationToken
Dim value As Task(Of IEnumerable(Of T))
 
value = instance.ExecuteQueryAsync(Of T)(query, cancellationToken)

Parameters

query
cancellationToken

Type Parameters

T
Return type

Return Value

A collection of T
Remarks
This method returns a System.Threading.Tasks.Task which can be awaited upon. If the query is cancelled the task will be cancelled; if the query fails with an unhandled exception the task will raise the exception.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityManager Class
EntityManager Members
Overload List

Send Feedback